import api from "@/utils/request";

// 获取角色列表
export const getRoleListAPI = () => {
  return api.post("/admin/base/sys/role/list");
};

// 获取角色列表分页数据
export const getRolePageAPI = () => {
  return api.post("/admin/base/sys/role/page");
};

//角色新增
export const getAddRoleAPI = (data) => {
  return api.post("/admin/base/sys/role/add", data);
};

//角色删除
export const getDelRoleAPI = (data) => {
  return api.post("/admin/base/sys/role/delete", data);
};

//角色编辑
export const getUpdateRoleAPI = (data) => {
  return api.post("/admin/base/sys/role/update", data);
};

//获取所有权限菜单列表
export const getAllListAPI = () => {
  return api.post("/admin/base/sys/menu/list");
};
